<?php
/**
 * Created by PhpStorm.
 * User: changyifan
 * Date: 2018/1/4
 * Time: 上午11:44
 * 课程管理
 */
namespace Home\Controller;
use Home\Model\SchoolModel;
use Think\Controller;



class CourseController extends MainController{

    /* <-------------                       课程信息管理                         -------------> */
	public function courseinfo_manage(){

	    $this -> assign('college_info',$this->event->getCollegeList());
		$this -> assign('par_college', $this->event->getCollegeList());
		$this -> assign('department_info', $this->event->getDepatmentList());
		$this -> assign('par_department', $this->event->getDepatmentList());
        //课程类型
		$this -> assign('tctype_info',$this->tctype->getTctypeInfoListByAll());
        //实验语言
		$this ->assign('language_info',$this->language->getLanguageInfoListByAll());
		$this->display();
	}
	
	public function courseinfo_ShowDatatables(){
	    $dept_id = I('dept_id');
	    $result['aaData'] = $this->course->getCourseInfoListByDepartment($dept_id);
        echo json_encode($result);
	}


}
